scene.org File Archive

File download

<root>­/­mirrors­/­ftp_klosz_art_pl­/­corners­/­code­/­docs and tutorials­/­more docs/TWO_MICE.TXT

File size:
690 bytes (690B)
File date:
2022-06-01 05:45:02
Download count:
all-time: 55

Preview

From: Lennart Steinke <steinke@zeus.adv-boeblingen.de>
Subject: Two mice, one pc
Newsgroups: rec.games.programmer
Date: Thu, 18 Jul 1996 10:14:53 -0500

Hi!

Sometime ago, I tried to use two mice at the
the same PC. It worked, and I used it for a
tron game, and  a simple Air Hockey simulation 
(two player only).

Here's what I've done to use those two mice:
0) Install mouse handler (com1)
1) Save the address of the current hander
2) Point the irq to "no handler installed"
3) Install a mouse handler for com2
4) Save it's address

To get the mouseinformation, just swap the
isr addresses, then use the standard mouse
functions.

Lenny
-- 
Lennart Steinke (steinke@adv-boeblingen.de)